package Com.amit.innerclas;


abstract class person
{
	abstract void eat();
}

public class Lab3 {

	public static void main(String[] args) {
		
		person p=new person() {
			
			@Override
			void eat() {
				System.out.println("nice fruits");
				
			}
		};
		
		p.eat();
		

	}

}
